#include "CRL_PixelBufferDescriptor.h"

CB_SUBNAMESPACE_START(RenderLib)

#define ENUM_ITEM(_Name, _Size, _Components, _Flags, _OpenGLFormat, _D3D9Format, _D3D10Format) #_Name,
const char* SPixelFormat::s_Names[SPixelFormat::NumFormats] =
{
	"Unused",
	#include "CRL_PixelBufferFormatsEnum.h"
};
#undef ENUM_ITEM


#define ENUM_ITEM(_Name, _Size, _Components, _Flags, _OpenGLFormat, _D3D9Format, _D3D10Format) {_Flags, _Size, _Components},
const SPixelFormat CPixelBufferDescriptor::s_PixelBufferFormat[SPixelFormat::NumFormats] =
{
	{0,0,0}, 
	#include "CRL_PixelBufferFormatsEnum.h"
};

// ------------------------------------------------------------------------------------------

CPixelBufferDescriptor::CPixelBufferDescriptor()
: m_Format(SPixelFormat::Unused)
, m_Dimension(PixelBuffer2D)
, m_Storage(Texture)
, m_Width(1)
, m_Height(1)
, m_Depth(1)
{
}

CB_SUBNAMESPACE_END